package com.why.controller;


import com.why.entity.TUser;
import com.why.service.ITUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author why
 * @since 2022-02-22
 */
@RestController
@RequestMapping("/why/t-user")
public class TUserController {

    @Resource
    ITUserService itUserService;

    @PostMapping("/insert")
    public int insertOne(TUser tUser){
       return itUserService.insertOne(tUser);
    }
//    @PostMapping("update")
//    public boolean updateOne(TUser tUser){
//        return itUserService.updateOne(tUser);
//    }
//    @GetMapping("/select")
//    public TUser selectList(){
//        return itUserService.insertOne();
//    }

}
